package com.diploma.project.aiqiyi.model;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "t_user_video")
@Data
@Builder
public class UserVideo {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    @Column(name = "video_id")
    private Integer videoId;

    @Column(name = "device_id")
    private String deviceId;

    //评论
    @Column(name = "beizhu")
    private String beizhu;

    /**
     * 分类{1：历史，2：收藏，3：购买}
     */
    private Integer type;


    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    @Tolerate
    public UserVideo() {
    }
}